package vue.edition;

import java.awt.Cursor;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JCheckBox;
import javax.swing.JToolBar;
import javax.swing.BoxLayout;
import java.awt.BorderLayout;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.SwingConstants;
import javax.swing.JMenuItem;
import java.awt.GridLayout;
import javax.swing.border.EmptyBorder;

public class EditMenu extends JPanel {

	private JPanel panelBtnConsult;
	private JButton btnModeConsult;
	private JPanel panel;
	private JPanel panel_1;
	private JPanel panel_2;
	private JPanel panel_3;
	private JMenuBar menuBar;
	private JMenu mnNewMenu_1;
	private JMenu mnNewMenu_5;
	private JMenu mnNewMenu_2;
	private JMenu mnNewMenu_3;

	public JButton getBtnEdit() {
		return btnModeConsult;
	}
	
	public JMenu getGererLieu() {
		return mnNewMenu_1;
	}
	
	public JMenu getGererNews() {
		return mnNewMenu_5;
	}
	
	public JMenu getGererParcours() {
		return mnNewMenu_2;
	}
	
	public JMenu getGererPoi() {
		return mnNewMenu_3;
	}
	
	public EditMenu() {

	}
	
	public void initComponents(JPanel contentPane) {
		setLayout(new BorderLayout(0, 0));
		
		this.panel = new JPanel();
		contentPane.add(panel);
		panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
		
		this.panel_1 = new JPanel();
		panel.add(panel_1);
		panel_1.setLayout(new BorderLayout(0, 0));
		
		this.panel_2 = new JPanel();
		panel_1.add(panel_2, BorderLayout.NORTH);
		panel_2.setLayout(new GridLayout(0, 2, 0, 0));
		
		this.panel_3 = new JPanel();
		FlowLayout flowLayout = (FlowLayout) panel_3.getLayout();
		flowLayout.setAlignment(FlowLayout.LEFT);
		panel_2.add(panel_3);
		
		this.menuBar = new JMenuBar();
		panel_3.add(menuBar);
		
		this.mnNewMenu_1 = new JMenu("G\u00E9rer Lieux");
		menuBar.add(mnNewMenu_1);
		
		this.mnNewMenu_5 = new JMenu("G\u00E9rer News");
		menuBar.add(mnNewMenu_5);
		
		this.mnNewMenu_2 = new JMenu("G\u00E9rer Parcours");
		menuBar.add(mnNewMenu_2);
		
		this.mnNewMenu_3 = new JMenu("G\u00E9rer POI");
		menuBar.add(mnNewMenu_3);
		
		this.panelBtnConsult = new JPanel();
		this.panelBtnConsult.setLayout(new FlowLayout(FlowLayout.RIGHT));
		
		this.btnModeConsult = new JButton("Mode Consultation");
		this.btnModeConsult.setBounds(352, 5, 93, 23);
		this.btnModeConsult.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
		this.panelBtnConsult.add(this.btnModeConsult);	
		
		contentPane.add(panelBtnConsult);
	}
}
